package band.wukong.practice.springboot.spring4.aop;

import org.springframework.context.annotation.AnnotationConfigApplicationContext;

/**
 * @author wukong(wukonggg@139.com)
 */
public class Main {

    public static void main(String[] args) {
        AnnotationConfigApplicationContext context = new AnnotationConfigApplicationContext(AOPConfig.class);

        DemoAnnotationService demoAnnotationService = context.getBean(DemoAnnotationService.class);
        DemoMethodService demoMethodeService = context.getBean(DemoMethodService.class);

        demoAnnotationService.add();
        demoMethodeService.add();

        context.close();
    }
}
